<?php

require_once "core/application/models/mchange/mchange2.php";

class Mchange3 extends Mchange2 {

    private $_query;
    private $_fetch = array();

    protected function getAnswer($login) {
        /**
         * @param string $login
         * @return string $answer
         */
        DB::getInstance()->openConnectionToGS();
        $this->_query = "SELECT `answer` FROM `account_data` WHERE `name` = '$login'";
        $this->_fetch = mysql_fetch_assoc(DB::getInstance()->sql($this->_query));
        return $this->_fetch['answer'];
        DB::getInstance()->closeConnection();
        unset($this->_query, $this->_fetch);
    }

}

?>
